It won't work because you are essentially writing each character of your password into contiguous blocks of memory (an array)
Code:
Password [ 0 ] = 104;
Password [ 1 ] = 101;
Password [ 2 ] = 108;
Password [ 3 ] = 108;
Password [ 4 ] = 111;
is no different than
Code:
Password [ 0 ] = 'h';
Password [ 1 ] = 'e';
Password [ 2 ] = 'l';
Password [ 3 ] = 'l';
Password [ 4 ] = 'o'
They both resolve to the same thing.
moving continguous memory from one location to another does nothing to facilitate encryption, it is no different than moving your car keys from the kitchen table to the dining room.
Code:
//This just adds unecessary overhead
Transfer [ 0 ] = Password [ 0 ];
Transfer [ 1 ] = Password [ 1 ];
Transfer [ 2 ] = Password [ 2 ];
Transfer [ 3 ] = Password [ 3 ];
Transfer [ 4 ] = Password [ 4 ];
If you want to avoid putting each character of your password into contiguous blocks of memory, avoid using arrays. Try pusing each character of your password into a linked list.